]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: emit Closed signal when dialog disappears
authorRay Strode <rstrode@redhat.com>
Tue, 22 Mar 2011 16:50:56 +0000 (12:50 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 22 Mar 2011 18:15:00 +0000 (14:15 -0400)
The session manager needs to keep its internal state for the
dialog in sync with ours.

https://bugzilla.gnome.org/show_bug.cgi?id=645485

js/ui/endSessionDialog.js

index 08c5705c9170524afa1ef69cd3870e3e30b7525a..d1fff2d0545e6d0bdc9d6d27a12915a8c75ef40e 100644 (file)
@@ -406,6 +406,13 @@ EndSessionDialog.prototype = {
                          }]);
     },
 
+    close: function() {
+        ModalDialog.ModalDialog.prototype.close.call(this);
+        DBus.session.emit_signal('/org/gnome/SessionManager/EndSessionDialog',
+                                 'org.gnome.SessionManager.EndSessionDialog',
+                                 'Closed', '', []);
+    },
+
     cancel: function() {
         this._stopTimer();
         DBus.session.emit_signal('/org/gnome/SessionManager/EndSessionDialog',